import { ref } from "vue";
export function useProductArea() {
    const pieData = ref([
        { name: "Search", value: 1048 },
        { name: "Direct", value: 735 },
        { name: "Email", value: 580 },
        { name: "Union Ads", value: 484 },
        { name: "Video Ads", value: 300 },
    ]);

    const pieConfig = ref({
        radius: ["30%", "40%"],
        colors: ["#37a2da", "#32c5e9", "#67e0e3", "#9fe6b8", "#ffdb5c", "#ff9f7f"],
        roseType: "radius", // 南丁格尔玫瑰
        showLabel: false,
        centerText: true, // 中心显示
    });
    return { pieConfig, pieData };
}
